package ldh.im.web.controller;

import ldh.im.web.service.ImUserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class ImLoginController {

    @Resource
    private ImUserService imUserService;

    /**
     *
     * @param userName  登录用户名
     * @param password  登录密码
     * @param tenantCode    租户号
     * @return
     */
    @RequestMapping(path="/imLogin", method = RequestMethod.POST)
    public String login(@RequestParam("name") String userName, @RequestParam("password") String password,
                        @RequestParam("tenantCode") String tenantCode) {

        return "success";
    }
}
